package com.aaa.controller;

import com.aaa.entity.Freturns;
import com.aaa.service.impl.FreturnsServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.text.ParseException;
import java.util.Date;
import java.util.List;

@RestController
@RequestMapping("freturns")
public class FreturnsController {
    @Resource
    FreturnsServiceImpl impl;
    @RequestMapping("selectall")
    public List<Freturns> selectall(Integer fuser){
     return impl.selectall(fuser);
 }
    @RequestMapping("upadd")
    public boolean upadd(Freturns freturns)throws ParseException {
        return impl.upadd(freturns);
    }//添加或修改
    @RequestMapping("del")
    public Integer del(Integer id){
      return impl.del(id);
    }//删除
    @RequestMapping("fadd")
    public Integer fadd(Integer forder, String kuaidi, Integer parcelid, Integer fuser, Date returntime, String remark)throws ParseException{
        return impl.fadd(forder,kuaidi,parcelid,fuser,returntime,remark);
    }
}
